MCSetControllerPort
TheMCSetControllerPort
function allows your application to set the graphics port for a movie controller. You can use this function to place a movie and its associated movie controller in different graphics ports. If you are using an attached controller, both the controller and the movie's graphics ports are changed. If you are using a detached controller, this function changes only the graphics port of the control portion of
the controller. You must use the Movie Toolbox'sSetMovieGWorld
function followed by theMCMovieChanged
function to change other portions.
pascal ComponentResult MCSetControllerPort (MovieController mc, CGrafPtr gp);
mc
- Specifies the movie controller for the operation. You obtain this
identifier from the Component Manager'sOpenComponent
orOpenDefaultComponent
function, or from theNewMovieController
function (described on page 2-28).gp
- Points to the new graphics port for the movie controller. Set this parameter to
nil
to use the current graphics port.DESCRIPTION
The movie controller component may use the foreground and background colors
from the graphics port at the time theMCSetController
function is called to colorize the movie controller.Movie controller components use the
MCSetControllerPort
function each time
you create a new movie controller. Hence, your component must be set to a valid port before creating a new movie controller.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help